#include "ShapesByLevel.h"

using namespace cocos2d;
void ShapesByLevel::buildShapes()
{
	vector<b2Vec2> shape1;
	shape1.push_back(b2Vec2(0.0f, 240.0f/PhysicsConstants::WORLD_SCALE));
	shape1.push_back(b2Vec2(300.0f/PhysicsConstants::WORLD_SCALE, 300.0f/PhysicsConstants::WORLD_SCALE));
	shape1.push_back(b2Vec2(300.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));
	shape1.push_back(b2Vec2(0.0f, 480.0f/PhysicsConstants::WORLD_SCALE));

	vector<b2Vec2> shape2;
	shape2.push_back(b2Vec2(300.0f/PhysicsConstants::WORLD_SCALE, 300.0f/PhysicsConstants::WORLD_SCALE));
	shape2.push_back(b2Vec2(400.0f/PhysicsConstants::WORLD_SCALE, 350.0f/PhysicsConstants::WORLD_SCALE));
	shape2.push_back(b2Vec2(400.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));
	shape2.push_back(b2Vec2(300.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));

	vector<b2Vec2> shape3;
	shape3.push_back(b2Vec2(400.0f/PhysicsConstants::WORLD_SCALE, 350.0f/PhysicsConstants::WORLD_SCALE));
	shape3.push_back(b2Vec2(600.0f/PhysicsConstants::WORLD_SCALE, 280.0f/PhysicsConstants::WORLD_SCALE));
	shape3.push_back(b2Vec2(600.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));
	shape3.push_back(b2Vec2(400.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));

	vector<b2Vec2> shape4;
	shape4.push_back(b2Vec2(500.0f/PhysicsConstants::WORLD_SCALE, 150.0f/PhysicsConstants::WORLD_SCALE));
	shape4.push_back(b2Vec2(600.0f/PhysicsConstants::WORLD_SCALE, 280.0f/PhysicsConstants::WORLD_SCALE));
	shape4.push_back(b2Vec2(400.0f/PhysicsConstants::WORLD_SCALE, 350.0f/PhysicsConstants::WORLD_SCALE));

	vector<b2Vec2> shape5;
	shape5.push_back(b2Vec2(600.0f/PhysicsConstants::WORLD_SCALE, 280.0f/PhysicsConstants::WORLD_SCALE));
	shape5.push_back(b2Vec2(700.0f/PhysicsConstants::WORLD_SCALE, 400.0f/PhysicsConstants::WORLD_SCALE));
	shape5.push_back(b2Vec2(700.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));
	shape5.push_back(b2Vec2(600.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));

	vector<b2Vec2> shape6;
	shape6.push_back(b2Vec2(700.0f/PhysicsConstants::WORLD_SCALE, 400.0f/PhysicsConstants::WORLD_SCALE));
	shape6.push_back(b2Vec2(800.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));
	shape6.push_back(b2Vec2(700.0f/PhysicsConstants::WORLD_SCALE, 480.0f/PhysicsConstants::WORLD_SCALE));

	shapes.push_back(shape1);
	shapes.push_back(shape2);
	shapes.push_back(shape3);
	shapes.push_back(shape4);
	shapes.push_back(shape5);
	shapes.push_back(shape6);
}